import {Actor, Action} from 'iflux2';
import {StepType} from '../constant/action-type';

export default class StepActor extends Actor {
    defaultState() {
        return {
            step: 'user',
            isCopy: false
        }
    }


    @Action(StepType.SET_STEP)
    setStep(state, step) {
        return state.set('step', step);
    }


    @Action(StepType.HAS_COPY)
    hasCopy(state, isCopy) {
        return state.set('isCopy', isCopy);
    }
}